﻿using ICSharpCode.AvalonEdit;
using Prism.Services.Dialogs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OP30.ViewModels
{
    public class AlarmsHistoryViewModel : BindableBase, IDialogAware
    {
        private TextEditor _TextEditor;

        public AlarmsHistoryViewModel()
        {
        }


        #region 导航
        public string Title => "历史报警记录";

        public event Action<IDialogResult> RequestClose;

        public bool CanCloseDialog()
        {
            return true;
        }

        public void OnDialogClosed()
        {

        }

        public void OnDialogOpened(IDialogParameters parameters)
        {

        }
        #endregion


        #region 事件


        private DelegateCommand<object> _TextEditorInitializedComand;

        public DelegateCommand<object> TextEditorInitializedComand =>
            _TextEditorInitializedComand ?? (_TextEditorInitializedComand = new DelegateCommand<object>(ExecuteTextEditorInitializedComand));

        private void ExecuteTextEditorInitializedComand(object obj)
        {
            //_TextEditor = obj as TextEditor;
        }

        #endregion
    }
}
